package org.akomantoso.core.data.type;

/**
 * This is the list of allowed values for a yes/no attribute.
 * 
 * <pre>
 * <xsd:simpleType name="yesNoType">
 *  	<xsd:restriction base="xsd:string">
 * 			<xsd:enumeration value="yes"/>
 * 			<xsd:enumeration value="no"/>
 *		</xsd:restriction>
 * </xsd:simpleType>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/1.0
 */
public enum YesNoType {

	yes, no;

	public static YesNoType checkValueOf(String name) {
		if (name == null) {
			return null;
		}
		return valueOf(name);
	}
}